<?php

declare(strict_types=1);

namespace app\user;

use think\facade\Event;

/**
 * User 模块注册
 */
class User
{
    // 应用全局注册
    public function boot()
    {
        $this->eventRegister();
    }

    // 注册商城相关事件监听
    protected function eventRegister()
    {
        // 商品事件订阅
        Event::subscribe('app\user\subscribe\User');
    }
}
